<include file="Public:header_active"/>

<!--主体 start-->
<div class="mainbox">
	<!--头部 start-->
	<div class="headerbox">
		奖品仓库	
	</div>
	<!--头部 end-->
	<div class="ck_box">
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t <egt name="pifu3count" value="1">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="pifu3count" value="1">
						<img src="__PUBLIC__/new/images/ck_pifu3.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_pifu3no.jpg" />
					</egt>
					<div class="ck_box_li_z_text">限时皮肤</div>
				</div>
				<div class="ck_box_li_d">
					<egt name="pifu3count" value="1"><div class="ck_box_li_d_s"  style="width:100%;"></div></egt>
					<div class="ck_box_li_d_z" <egt name="pifu3count" value="1"> onclick="dodhcj_box(6)" </egt>>兑换<egt name="pifu3count" value="1">*{$pifu3count}</egt></div>
				</div>
			</div>
		</div>
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t <egt name="pifu69count" value="5">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="pifu69count" value="5">
						<img src="__PUBLIC__/new/images/ck_pifu69.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_pifu69no.jpg" />
					</egt>
					<div class="ck_box_li_z_text">69元皮肤</div>
				</div>
				<div class="ck_box_li_d">
					<div class="ck_box_li_d_s" style="width:{$pifu69per}%;"></div>
					<egt name="pifu69count" value="1">
						<div class="ck_box_li_d_z" <egt name="pifu69count" value="5"> onclick="dodhcj_box(7)" </egt>>{$pifu69count}/5</div>
					<else/>
						<div class="ck_box_li_d_z">0/5</div>
					</egt>
				</div>
			</div>
		</div>
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t <egt name="pifu199count" value="10">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="pifu199count" value="10">
						<img src="__PUBLIC__/new/images/ck_pifu199.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_pifu199no.jpg" />
					</egt>
					<div class="ck_box_li_z_text">199元皮肤</div>
				</div>
				<div class="ck_box_li_d">
					<div class="ck_box_li_d_s" style="width:{$pifu199per}%;"></div>
					<egt name="pifu199count" value="1">
						<div class="ck_box_li_d_z" <egt name="pifu199count" value="10"> onclick="dodhcj_box(8)" </egt>>{$pifu199count}/10</div>
					<else/>
						<div class="ck_box_li_d_z">0/10</div>
					</egt>
				</div>
			</div>
		</div>
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t <egt name="dianquancount" value="1">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="dianquancount" value="1">
						<img src="__PUBLIC__/new/images/ck_dianquan.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_dianquanno.png" />
					</egt>
					<div class="ck_box_li_z_text">100点券</div>
				</div>
				<div class="ck_box_li_d">
					<egt name="dianquancount" value="1"><div class="ck_box_li_d_s" style="width:100%;"></div></egt>
					<div class="ck_box_li_d_z" <egt name="dianquancount" value="1"> onclick="dodhcj_box(5)" </egt>>兑换<egt name="dianquancount" value="1">*{$dianquancount}</egt></div>
				</div>
			</div>
		</div>
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t  <egt name="jinbi" value="1">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="jinbi" value="1">
						<img src="__PUBLIC__/new/images/ck_jinbi.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_jinbino.jpg" />
					</egt>
					<div class="ck_box_li_z_text">金币</div>
				</div>
				<div class="ck_box_li_d">
					<egt name="jinbi" value="1"><div class="ck_box_li_d_s" style="width:100%;"></div></egt>
					<div class="ck_box_li_d_z"><egt name="jinbi" value="1">{$jinbi}<else/>0</egt></div>
				</div>
			</div>
		</div>
		<div class="ck_box_ul">
			<div class="ck_box_li">
				<div class="ck_box_li_t <egt name="againcount" value="1">ck_man</egt> ">
					
				</div>
				<div class="ck_box_li_z">
					<egt name="againcount" value="1">
						<img src="__PUBLIC__/new/images/ck_again.jpg" />
					<else/>
						<img src="__PUBLIC__/new/images/ck_againno.jpg" />
					</egt>
					<div class="ck_box_li_z_text">再来一次</div>
				</div>
				<div class="ck_box_li_d">
					<egt name="againcount" value="1"><div class="ck_box_li_d_s" style="width:100%;"></div></egt>
					<div class="ck_box_li_d_z">使用<egt name="againcount" value="1">*{$againcount}</egt></div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<!--弹窗 start-->
	<div class="tc_box_bg" id="dodhcj_box">
		<div class="tc_box">
			<div class="form-horizontal">
				<input type="hidden" name="dhid" value="" />
				<div class="form-group">
					<div class="inputblwrap ico-user">
						<empty name="user_info.qq">
							<input type="number" class="form-control" name="qq" value="" placeholder="QQ号" />
						<else/>
							<input type="number" class="form-control" name="qq" readonly value="{$user_info.qq}" placeholder="QQ号" />
						</empty>
					</div>
				</div>
				
				<div class="form-group">
					<div class="inputblwrap ico-phone">
						<empty name="user_info.tel">
							<input type="number" class="form-control" name="tel" value="" placeholder="手机号" />
						<else/>
							<input type="number" class="form-control" name="tel" readonly value="{$user_info.tel}" placeholder="手机号" />
						</empty>
					</div>
				</div>
				
				<div class="form-group">
					<div class="inputbltext">
						小菠温馨提示：<br />
						兑换请加Q群：528279088，然后私M群管理员：全民菠菜@兑换有关M我<br />
						他会很快帮你处理兑换奖品哦~<br />
						加群！加群！加群！重要的事情说三遍
					</div>
				</div>
				
				<div class="form-group">
					<a class="submit-btn" href="javascript:;" onClick="dodhcjjg()">确认兑换</a>
				</div>
			</div>
		</div>
	</div>
	<!--弹窗 end-->
</div>
<!--主体 end-->
<script type="text/javascript">
function dodhcjjg(){
	var dhid=$("input[name='dhid']").val();
	var qq=$("input[name='qq']").val();
	var tel=$("input[name='tel']").val();
	$.post("{:U('Active/dodhcjjg')}", {dhid:dhid,qq:qq,tel:tel}, function(v){
		if(v=="duihuancg"){
			//alert("兑换成功");
			$("#dodhcj_box").hide();
			$("input[name='dhid']").val("");
			location.reload();
			
		}else if(v=="noqq"){
			alert("请输入QQ号");
		}else if(v=="notel"){
			alert("请输入手机号");
		}else if(v=="duihuansb"){
			alert("兑换失败");
		}else{
			alert(v);
		}
				   
	});
}
function dodhcj_box(t){
	$("#dodhcj_box").show();
	$("input[name='dhid']").val(t);
}

</script>

<include file="Public:footer_active"/>
